import request from '@/utils/request'

export function getList(pageNum,pageSize) {
  return request({
    url: `/banner/${pageNum}/${pageSize}`,
    method: 'get'
  })
}

export function save(bannerVo) {
    return request({
      url: `/banner/save`,
      method: 'post',
      data:bannerVo
    })
  }
export function deleteById(id) {
  return request({
    url: `/banner/${id}`,
    method: 'delete',
  })
}

export function getById(id) {
  return request({
    url: `/teacher/${id}`,
    method: 'get',
  })
}

